import request from '@/utils/request'

export function getProblemList(data) {
  return request({
    url: '/problem',
    method: 'post',
    data
  })
}

export function updateProblem(data) {
  return request({
    url: '/problem/update',
    method: 'post',
    data
  })
}

export function deleteProblem(id) {
  return request({
    url: '/problem/delete',
    method: 'delete',
    params: { id }
  })
}

export function getAllProblem() {
  return request({
    url: '/problem',
    method: 'get'
  })
}

